package org.example.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.system.model.entity.Vehicle;
import org.example.system.model.query.VehicleDetailQuery;
import org.example.system.model.query.VehiclePageQuery;
import org.example.system.model.query.VehicleQuery;
import org.example.system.model.vo.PageVo;
import org.example.system.model.vo.VehicleListVO;
import org.example.system.model.vo.VehicleVO;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【biz_vehicle(车辆表)】的数据库操作Service
 * @createDate 2024-11-09 19:08:01
 */
public interface VehicleService extends IService<Vehicle> {

    boolean removeId(Integer id);

    boolean recoveId(Integer id);


//    /**
//     * 根据多条件分页查询车辆列表
//     * @param queryParams
//     * @return
//     */
//    PageVO<VehicleVO> findVoPage(VehiclePageQuery queryParams);

    /**
     * 根据多条件分页查询车辆列表
     * @param queryParams
     * @return
     */
    PageVo<VehicleVO> findVoPage(VehiclePageQuery queryParams);

    IPage<Vehicle> queryVehicles(VehiclePageQuery query);


    VehicleDetailQuery CarDetail(Integer id);

    void updateVehicleState(Integer modelId, Integer code);
}
